package org.jpro.modules.system.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.jpro.common.bean.BaseEntity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <P>功能描述 : 日志entity </P>
 * <P>Method Name : User </P>
 * <P>Author : 王泽浩 </P>
 * <P>E-Mail : 1028625100@qq.com </P>
 * <P>Date : 2017-03-03 23:41:36</P>
 * @since 1.0
 */
@Getter
@Setter
@Entity
@DynamicUpdate
@DynamicInsert
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "log")
public class Log extends BaseEntity<Integer> implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    @Column(name = "operation_code", nullable = false, length = 50)
    private String operationCode;

    @Column(name = "creater", length = 20)
    private String creater;

    @Column(name = "create_date", nullable = false, length = 19)
    private Timestamp createDate;

    @Column(name = "type")
    private Integer type;

    @Column(name = "os", length = 20)
    private String os;

    @Column(name = "browser", length = 20)
    private String browser;

    @Column(name = "ip", length = 20)
    private String ip;

    @Column(name = "mac", length = 20)
    private String mac;

    @Column(name = "execute_time")
    private Integer executeTime;

    @Column(name = "description", length = 500)
    private String description;

    @Column(name = "request_param", length = 500)
    private String requestParam;

    // Constructors
    public Log(Integer id) {
        super(id);
    }

}